package domain;


import java.util.HashSet;
import java.util.Set;

public class Contact
{
	
	private String firstName;
	private String lastName;
	private long idContact;
	private String email;
	private Set<PhoneNumber> phoneNumbers = new HashSet<PhoneNumber>();
	private Set<ContactGroup> contactGroups = new HashSet<ContactGroup>();
	private Address address;
	
	public Contact(String firstName, String lastName, String email)
	{
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
	}
	// default constructer
	public Contact()
	{
		this("", "", "");
	}
	
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public long getIdContact() {
		return idContact;
	}
	public void setIdContact(long idContact) {
		this.idContact = idContact;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Set<PhoneNumber> getPhoneNumbers() {
		return phoneNumbers;
	}
	public void setPhoneNumbers(Set<PhoneNumber> phoneNumbers) {
		this.phoneNumbers = phoneNumbers;
	}
	public Set<ContactGroup> getContactGroups() {
		return contactGroups;
	}
	public void setContactGroups(Set<ContactGroup> contactGroups) {
		this.contactGroups = contactGroups;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	
	
	
	
}
